package com.yupi.springbootinit.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.yupi.springbootinit.model.entity.CommentRq;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class CommentVO implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 帖子id
     */
    private Long postId;


    /**
     * 内容
     */
    private String content;

    /**
     * 创建用户 id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    /**
     * 是否匿名
     */
    private Integer anon;

    /**
     * 匿名名称
     */
    private String anon_name;

    private String imgpath;

    private List<CommentRq> childrenComments;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
